package com.xuan.controller;

import com.xuan.oath.client.api.model.entity.Resource;
import com.xuan.service.AuthResourceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author Lenovo
 * @description: TODO 资源路径服务
 * @date 2021/7/26 10:22
 */
@RestController
@RequestMapping("/auth/resource")
public class AuthResourceController {


    @Autowired
    private AuthResourceService authResourceService;

    @GetMapping("/getAll")
    public List<Resource> getAllResource() {
        return authResourceService.list();
    }
}
